package com.hdoit.ares.logical.share.dao.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.hdoit.ares.logical.share.dao.IShareInfoDao;
import com.hdoit.ares.logical.share.mapper.ShareInfoMapper;
import com.hdoit.ares.logical.share.model.ShareInfo;
import com.hdoit.ares.logical.viewmodel.share.ShareInfoSearch;
import com.tennetcn.common.dao.base.impl.SuperDao;
import com.tennetcn.common.message.PagerModel;
/**
 * @author      wangxuexue
 * @email       
 * @createtime  2017年11月18日 11:58:50
 * @comment
 */
@Component
public class ShareInfoDaoImpl extends SuperDao<ShareInfo> implements IShareInfoDao{

	private ShareInfoMapper shareInfoMapper;
	
	public ShareInfoMapper getShareInfoMapper() {
		return shareInfoMapper;
	}

	@Resource(name="shareInfoMapper")
	public void setShareInfoMapper(ShareInfoMapper shareInfoMapper) {
		this.shareInfoMapper = shareInfoMapper;
	}

	@Override
	public List<ShareInfo> queryLimitInfo(String infoType) {

		return shareInfoMapper.queryLimitInfo(infoType);
	}

	@Override
	public List<ShareInfo> queryAllInfo(String infoType) {

		return shareInfoMapper.queryAllInfo(infoType);
	}

	@Override
	public ShareInfo queryInfoDetails(String id) {

		return shareInfoMapper.queryInfoDetails(id);
	}

	@Override
	public List<ShareInfo> queryOtherInfo(String infoType, String id) {

		return shareInfoMapper.queryOtherInfo(infoType, id);
	}

	@Override
	public int queryShareInfoCount(ShareInfoSearch shareInfoSearch) {

		return shareInfoMapper.queryShareInfoCount(shareInfoSearch);
	}

	@Override
	public List<ShareInfo> queryShareInfoList(ShareInfoSearch shareInfoSearch,PagerModel pagerModel) {
		
		return shareInfoMapper.queryShareInfoList(shareInfoSearch, pagerModel);
	}

	@Override
	public ShareInfo queryShareInfoModel(String key) {
		
		return shareInfoMapper.queryShareInfoModel(key);
	}

	@Override
	public int updatePicById(String id) {
		
		return shareInfoMapper.updatePicById(id);
	}

	@Override
	public int updateSmallPicById(String id) {
		
		return shareInfoMapper.updateSmallPicById(id);
	}

	
}
